package com.oneboot.bbsdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_post_collect_record
 */
@TableName(value ="tb_post_collect_record")
@Data
public class PostCollectRecord implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long record_id;

    /**
     * 收藏帖子主键
     */
    @TableField(value = "post_id")
    private Long post_id;

    /**
     * 收藏者id
     */
    @TableField(value = "user_id")
    private Long user_id;

    /**
     * 评论时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}